import apiRequest from "../common/apiRequest";
// 通信标准化作业
/**
 * 根据用户id查询模块列表
 */
const selectModelList = (params) => {
	return apiRequest({
		url: '/bzzy/web/originating/selectModelList',
		method: 'post',
		data: params
	})
}
/**
 * 待办作业列表
 */
const getJobListStandardization = (params) => {
	return apiRequest({
		url: '/bzzy/web/wait/selectWaitHandleList',
		method: 'post',
		data: params
	})
}
/**
 * 作业详情
 */
const selectWaitHandleOneStandardization = (params) => {
	return apiRequest({
		url: '/bzzy/web/wait/selectWaitHandleOne',
		method: 'post',
		data: params
	})
}
/**
 * 签到
 */
const addSignIn = (params) => {
	return apiRequest({
		url: '/bzzy/web/wait/addSignIn',
		method: 'post',
		data: params
	})
}
/**
 * 签到查看
 */
const selectSignIn = (params) => {
	return apiRequest({
		url: '/bzzy/web/wait/selectSignIn',
		method: 'post',
		data: params
	})
}

/**
 * 执行-获取现场勘察执行记录
 */
const getSurverExecutionInfo = (params) => {
	return apiRequest({
		url: '/bzzy/web/work/getSurverExecutionInfo',
		method: 'post',
		data: params
	})
}
/**
 * 执行-获取现场勘察执行记录
 */
const modifySurverExecutionInfo = (params) => {
	return apiRequest({
		url: '/bzzy/web/work/modifySurverExecutionInfo',
		method: 'post',
		data: params
	})
}
/**
 * 提交-页面右上角对整合内容的一次提交
 */
const executeSubmitLogic = (params) => {
	return apiRequest({
		url: '/bzzy/web/work/executeSubmitLogic',
		method: 'post',
		data: params
	})
}
/**
 * 执行查看
 */
const getSurverExecutionInfoDetails = (params) => {
	return apiRequest({
		url: '/bzzy/web/work/getSurverExecutionInfoDetails',
		method: 'post',
		data: params
	})
}
/**
 * 获取用户数据
 */
const selectuserinfo = (params) => {
	return apiRequest({
		url: '/bzzy/web/api/userinfo/selectuserinfo',
		method: 'post',
		data: params
	})
}
/**
 * 我发起的任务
 */
const selectMyPlan = (params) => {
	return apiRequest({
		url: '/bzzy/web/originating/selectMyPlan',
		method: 'post',
		data: params
	})
}
/**
 * 发起计划
 */
const initiatePlan = (params) => {
	return apiRequest({
		url: '/bzzy/web/originating/initiatePlan',
		method: 'post',
		data: params
	})
}

// 选择人员
export const selectLwOrgList = (params) => {
	return apiRequest({
		url: '/bzzy/web/api/userinfo/getUserList',
		method: 'post',
		data: params
	})
}
// 选择外商人员
export const selectLwOrgListForeign = (params) => {
	return apiRequest({
		url: '/common/generic/selectLwOrgListForeign',
		method: 'post',
		data: params
	})
}
export const selectLwOrgListTow = (params) => {
	return apiRequest({
		url: '/common/kosinManage/rest/approve/authorize/selectLwOrgListTow',
		method: 'post',
		data: params
	})
}
// 名称模糊查询人员信息
export const selectUserListByName = (params) => {
	return apiRequest({
		url: '/common/generic/selectUserListByName',
		method: 'post',
		data: params
	})
}

// 选择站点
export const selectSiteList = (params) => {
	return apiRequest({
		url: '/common/generic/selectSiteList',
		method: 'post',
		data: params
	})
}
// 名称模糊搜索变电站简易信息
export const selectSiteSimpleInfoListByName = (params) => {
	return apiRequest({
		url: '/common/generic/selectSiteSimpleInfoListByName',
		method: 'post',
		data: params
	})
}
// 选择通信设备
export const selectDtAppEquipmentList = (params) => {
	return apiRequest({
		url: '/common/generic/selectDtAppEquipmentList',
		method: 'post',
		data: params
	})
}
// 选择电源设备
export const selectDtAppEquipmentPowerList = (params) => {
	return apiRequest({
		url: '/common/generic/selectDtAppEquipmentPowerList',
		method: 'post',
		data: params
	})
}
// 选择光缆设备
export const selectOpticalList = (params) => {
	return apiRequest({
		url: '/common/generic/selectOpticalList',
		method: 'post',
		data: params
	})
}
/**
 * 作业内容类型
 */
export const getDictionaryTableData = (params) => {
	return apiRequest({
		url: '/bzzy/web/work/getDictionaryTableData',
		method: 'post',
		data: params
	})
}
/**
 * 会商执行查看
 */
export const selecthsexecute = (params) => {
	return apiRequest({
		url: '/bzzy/web/api/consultationdeduction/selecthsexecute',
		method: 'post',
		data: params
	})
}

/**
 * 会商分配
 */
export const allocation = (params) => {
	return apiRequest({
		url: '/bzzy/web/api/consultationdeduction/allocation',
		method: 'post',
		data: params
	})
}
/**
 * 会商分配详情查看
 */
export const selectallocation = (params) => {
	return apiRequest({
		url: '/bzzy/web/api/consultationdeduction/selectallocation',
		method: 'post',
		data: params
	})
}
/**
 * 作业项目编辑
 */
export const insertoperatingitemlog = (params) => {
	return apiRequest({
		url: '/bzzy/web/api/consultationdeduction/insertoperatingitemlog',
		method: 'post',
		data: params
	})
}
/**
 * 查询所有作业项目
 */
export const selectoperatingitem = (params) => {
	return apiRequest({
		url: '/bzzy/web/api/consultationdeduction/selectoperatingitem',
		method: 'post',
		data: params
	})
}
/**
 * 已选中的作业项目
 */
export const selectoperatingitemlog = (params) => {
	return apiRequest({
		url: '/bzzy/web/api/consultationdeduction/selectoperatingitemlog',
		method: 'post',
		data: params
	})
}
/**
 * 查询所有危险点措施
 */
export const selectwxdmeasures = (params) => {
	return apiRequest({
		url: '/bzzy/web/api/consultationdeduction/selectwxdmeasures',
		method: 'post',
		data: params
	})
}
/**
 * 查询已选中危险点措施
 */
export const selectwxdmeasureslog = (params) => {
	return apiRequest({
		url: '/bzzy/web/api/consultationdeduction/selectwxdmeasureslog',
		method: 'post',
		data: params
	})
}
/**
 * 编辑所有检修设备
 */
export const selectjxbjoptical = (params) => {
	return apiRequest({
		url: '/bzzy/web/api/consultationdeduction/selectjxbjoptical',
		method: 'post',
		data: params
	})
}
/**
 * 编辑所有检修设备
 */
export const insertjxbjopticallog = (params) => {
	return apiRequest({
		url: '/bzzy/web/api/consultationdeduction/insertjxbjopticallog',
		method: 'post',
		data: params
	})
}
/**
 * 查看所有检修设备
 */
export const selectjxbjopticallog = (params) => {
	return apiRequest({
		url: '/bzzy/web/api/consultationdeduction/selectjxbjopticallog',
		method: 'post',
		data: params
	})
}
/**
 * 作业信息-保存
 */
export const updateworkinfo = (params) => {
	return apiRequest({
		url: '/bzzy/web/api/consultationdeduction/updateworkinfo',
		method: 'post',
		data: params
	})
}
/**
 * 危险点措施-编辑
 */
export const insertwxdmeasureslog = (params) => {
	return apiRequest({
		url: '/bzzy/web/api/consultationdeduction/insertwxdmeasureslog',
		method: 'post',
		data: params
	})
}
/**
 * 作业信息-回显
 */
export const selectworkinfo = (params) => {
	return apiRequest({
		url: '/bzzy/web/api/consultationdeduction/selectworkinfo',
		method: 'post',
		data: params
	})
}
/**
 * 检修设备详情查看
 */
export const selectoverhaul = (params) => {
	return apiRequest({
		url: '/bzzy/web/api/consultationdeduction/selectoverhaul',
		method: 'post',
		data: params
	})
}
/**
 * 检修设备确认
 */
export const updateoverhaul = (params) => {
	return apiRequest({
		url: '/bzzy/web/api/consultationdeduction/updateoverhaul',
		method: 'post',
		data: params
	})
}
/**
 * 现场实施 - 进入人员分工编辑界面按钮
 */
export const personneldivisionviwe = (params) => {
	return apiRequest({
		url: '/bzzy/web/api/consultationdeduction/personneldivisionviwe',
		method: 'post',
		data: params
	})
}
/**
 * 更新会商执行会议纪要
 */
export const insertexecute = (params) => {
	return apiRequest({
		url: '/bzzy/web/api/consultationdeduction/insertexecute',
		method: 'post',
		data: params
	})
}
/**
 * 现场实施 - 人员分工保存
 */
export const personneldivision = (params) => {
	return apiRequest({
		url: '/bzzy/web/api/consultationdeduction/personneldivision',
		method: 'post',
		data: params
	})
}
/**
 * 现场实施 - 人员分工-详情
 */
export const selectpersonneldivision = (params) => {
	return apiRequest({
		url: '/bzzy/web/api/consultationdeduction/selectpersonneldivision',
		method: 'post',
		data: params
	})
}
/**
 * 现场实施 - 危险点分析以及预防措施
 */
export const wxdmeasureslogviwe = (params) => {
	return apiRequest({
		url: '/bzzy/web/api/consultationdeduction/wxdmeasureslogviwe',
		method: 'post',
		data: params
	})
}
/**
 * 现场实施 - 危险点分析以及预防措施-详情
 */
export const wxdmeasuresdetails = (params) => {
	return apiRequest({
		url: '/bzzy/web/api/consultationdeduction/wxdmeasuresdetails',
		method: 'post',
		data: params
	})
}
/**
 * 现场实施 - 施工执行
 */
export const constructionviwe = (params) => {
	return apiRequest({
		url: '/bzzy/web/api/consultationdeduction/constructionviwe',
		method: 'post',
		data: params
	})
}
/**
 * 现场实施 - 施工执行-详情
 */
export const constructiondetails = (params) => {
	return apiRequest({
		url: '/bzzy/web/api/consultationdeduction/constructiondetails',
		method: 'post',
		data: params
	})
}
/**
 * 会商-推演执行
 */
export const deductionAllocation = (params) => {
	return apiRequest({
		url: '/bzzy/web/api/consultationdeduction/deductionAllocation',
		method: 'post',
		data: params
	})
}
/**
 * 现场勘察-执行-删除附件
 */
export const delFileInfo = (params) => {
	return apiRequest({
		url: '/bzzy/web/work/delFileInfo',
		method: 'post',
		data: params
	})
}

/**
 * 推演详情
 */
export const deductiondetails = (params) => {
	return apiRequest({
		url: '/bzzy/web/api/consultationdeduction/deductiondetails',
		method: 'post',
		data: params
	})
}
/**
 * 现场实施 -危险点 总保存 （右上角）
 */
export const insertMULTwxdmeasureslog = (params) => {
	return apiRequest({
		url: '/bzzy/web/api/consultationdeduction/insertMULTwxdmeasureslog',
		method: 'post',
		data: params
	})
}
/**
 * 现场实施-施工-保存-右上角
 */
export const insertMULTconstruction = (params) => {
	return apiRequest({
		url: '/bzzy/web/api/consultationdeduction/insertMULTconstruction',
		method: 'post',
		data: params
	})
}
export const fileUrl = "192.168.124.67:18001"
// export const fileUrl = "10.0.1.18:18001"
export default {
	getJobListStandardization,
	selectWaitHandleOneStandardization,
	addSignIn,
	selectSignIn,
	selectModelList,
	getSurverExecutionInfo,
	modifySurverExecutionInfo,
	executeSubmitLogic,
	getSurverExecutionInfoDetails,
	selectuserinfo,
	selectMyPlan,
	selectLwOrgList,
	selectLwOrgListForeign,
	selectLwOrgListTow,
	selectUserListByName,
	selectSiteList,
	selectSiteSimpleInfoListByName,
	selectDtAppEquipmentList,
	selectDtAppEquipmentPowerList,
	selectOpticalList,
	initiatePlan,
	selecthsexecute,
	getDictionaryTableData,
	allocation,
	selectallocation,
	insertoperatingitemlog,
	selectoperatingitem,
	selectoperatingitemlog,
	selectwxdmeasures,
	selectjxbjoptical,
	updateworkinfo,
	insertwxdmeasureslog,
	selectwxdmeasureslog,
	insertjxbjopticallog,
	selectjxbjopticallog,
	selectworkinfo,
	selectoverhaul,
	updateoverhaul,
	personneldivisionviwe,
	personneldivision,
	selectpersonneldivision,
	wxdmeasureslogviwe,
	wxdmeasuresdetails,
	constructionviwe,
	constructiondetails,
	insertexecute,
	deductionAllocation,
	delFileInfo,
	deductiondetails,
	insertMULTwxdmeasureslog,
	insertMULTconstruction,
	fileUrl
}
